package networks.manager;

import networks.protocol.Message;

public class GameHandler {

    public static String msg = "temp";

    // gate
    public static void onResConnect(Message data) {
        // s2c_connect msg = data.decode<s2c_connect>();
        System.out.println("onResConnect-: " + msg);
        // EventProxy.BroadcastEvent(Routes.C2S_GATE_CONNECT, msg);
    }

    // connector
    public static void onResLogin(Message data) {
        // s2c_login msg = data.decode<s2c_login>();
        System.out.println("onResLogin-: " + msg);
        // EventProxy.BroadcastEvent(Routes.C2S_CONNECTOR_LOGIN, msg);
    }

    public static void onResLogout(Message data) {
        // s2c_logout msg = data.decode<s2c_logout>();
        System.out.println("onResLogout-: " + msg);
        // EventProxy.BroadcastEvent(Routes.C2S_CONNECTOR_LOGOUT, msg);
    }

    public static void onResRegister(Message data) {
        // s2c_register msg = data.decode<s2c_register>();
        System.out.println("onResRegister-: " + msg);
        // EventProxy.BroadcastEvent(Routes.C2S_CONNECTOR_REGISTER, msg);
    }

    // lobby
    public static void onResMatch(Message data) {
        // s2c_match msg = data.decode<s2c_match>();
        System.out.println("onResMatch-: " + msg);
        // EventProxy.BroadcastEvent(Routes.C2S_LOBBY_MATCH, msg);
    }

    public static void onPushUserChat(Message data) {
        // s2c_onChat msg = data.decode<s2c_onChat>();
        System.out.println("onPushUserChat-: " + msg);
        // EventProxy.BroadcastEvent(Routes.S2C_LOBBY_ON_CHAT, msg);
    }

    public static void onPushUserEnter(Message data) {
        // s2c_onEnter msg = data.decode<s2c_onEnter>();
        System.out.println("onPushUserEnter-: " + msg);
        // EventProxy.BroadcastEvent(Routes.S2C_LOBBY_ON_ENTER, msg);
    }

    public static void onPushUserLeave(Message data) {
        // s2c_onLeave msg = data.decode<s2c_onLeave>();
        System.out.println("onPushUserLeave-: " + msg);
        // EventProxy.BroadcastEvent(Routes.S2C_LOBBY_ON_LEAVE, msg);
    }

    // room
    public static void onResRoomCreate(Message data) {
        // s2c_create msg = data.decode<s2c_create>();
        System.out.println("onResRoomCreate-: " + msg);
        // EventProxy.BroadcastEvent(Routes.C2S_ROOM_CREATE, msg);
    }

    public static void onResRoomJoin(Message data) {
        // s2c_join msg = data.decode<s2c_join>();
        System.out.println("onResRoomJoin-: " + msg);
        // EventProxy.BroadcastEvent(Routes.C2S_ROOM_JOIN, msg);
    }

    public static void onResRoomLeave(Message data) {
        // s2c_leave msg = data.decode<s2c_leave>();
        System.out.println("onResRoomLeave-: " + msg);
        // EventProxy.BroadcastEvent(Routes.C2S_ROOM_LEAVE, msg);
    }

    public static void onPushPlayerInfo(Message data) {
        // s2c_onPlayerInfo msg = data.decode<s2c_onPlayerInfo>();
        System.out.println("onPushPlayerInfo-: " + msg);
        // EventProxy.BroadcastEvent(Routes.S2C_ROOM_ON_PLAYER_INFO, msg);
    }

    public static void onPushPlayerLeave(Message data) {
        // s2c_onPlayerLeave msg = data.decode<s2c_onPlayerLeave>();
        System.out.println("onPushPlayerLeave-: " + msg);
        // EventProxy.BroadcastEvent(Routes.S2C_ROOM_ON_PLAYER_LEAVE, msg);
    }

    public static void onPushRoomMatch(Message data) {
        // s2c_onMatch msg = data.decode<s2c_onMatch>();
        System.out.println("onPushRoomMatch-: " + msg);
        // EventProxy.BroadcastEvent(Routes.S2C_ROOM_ON_MATCH, msg);
    }

    // database
    public static void onResGetUser(Message data) {
        // s2c_getUser msg = data.decode<s2c_getUser>();
        System.out.println("onResGetUser-: " + msg);
        // EventProxy.BroadcastEvent(Routes.C2S_DB_GET_USER, msg);
    }

    public static void onResRename(Message data) {
        // s2c_rename msg = data.decode<s2c_rename>();
        System.out.println("onResRename-: " + msg);
        // EventProxy.BroadcastEvent(Routes.C2S_DB_RENAME, msg);
    }

    public static void onResGetDoudizhuInfo(Message data) {
        // s2c_getDoudizhuInfo msg = data.decode<s2c_getDoudizhuInfo>();
        System.out.println("onResGetDoudizhuInfo-: " + msg);
        // EventProxy.BroadcastEvent(Routes.C2S_DB_GET_DOUDIZHU_INFO, msg);
    }
}
